package com.ulic.customerManApplication.util.string;

public class StringUtil {
	/**
	 * 将数组转成数据库需要格式
	 * @param intArray {1,2}
	 * @return (1,2)
	 */
	public static String arrayToString(int[] intArray) {
		if(intArray == null) {
			return "()";
		}
		String s = "(";
		for(int i = 0; i < intArray.length; i++) {
			if(i == 0) {
				s += intArray[i];
			} else {
				s += "," + intArray[i];
			}
		}
		s+= ")";
		return s;
	}
}
